// PNG image format loader
// (c) jimon game studio

#ifndef JEH_CIMAGEFORMATLOADER_PNG
#define JEH_CIMAGEFORMATLOADER_PNG

#include "CImageLoader.h"

#ifdef JE_SUPPORT_FILEFORMAT_PNG

namespace je
{
	namespace video
	{

		//! PNG image format loader
		class CImageFormatLoader_PNG:public je::video::IImageFormatLoader
		{
		public:
			//! Constructor
			CImageFormatLoader_PNG();

			//! Destructor
			~CImageFormatLoader_PNG();

			//! Load Image
			IImage * LoadBuffer(core::IBuffer * DataBuffer);
			
			//! Save Image
			void SaveBuffer(core::IBuffer * DataBuffer,IImage * Image);

			//! Return true if image loader can work with this data
			u1 CanWorkWithThis(core::IBuffer * DataBuffer);

			//! Return Image Format
			ImageFormat GetImageFormat();
		};
	}
}

#endif

#endif
